import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '报告编号',
    align: "center",
    dataIndex: 'reportCode',
    width: 120
  },
  {
    title: '委托单位',
    align: "center",
    dataIndex: 'entName',
    width: 180
  },
  //  {
  //   title: '单位地址',
  //   align:"center",
  //   dataIndex: 'entAddress',
  //   width:110
  //  },
  // {
  //   title: '经办人',
  //   align: "center",
  //   dataIndex: 'handler',
  //   width: 90
  // },
  {
    title: '经办日期',
    align: "center",
    dataIndex: 'handlDate',
    width: 90
  },
  {
    title: '联系人',
    align: "center",
    dataIndex: 'contacter',
    width: 90
  },
  {
    title: '联系电话',
    align: "center",
    dataIndex: 'phone',
    width: 100
  },
  {
    title: '报告类型',
    align: "center",
    dataIndex: 'reportType',
    width: 100
  },
  {
    title: '交付时间',
    align: "center",
    dataIndex: 'deliverData',
    width: 120
  },

  {
    title: '合同附件',
    align: "center",
    dataIndex: 'conAtta',
    width: 120,
    slots: { customRender: 'fileSlot' },
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "委托单位名称",
    field: "entName",
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: "lab_enterprise,ent_name,ent_name"
    },
    colProps: { span: 6 },
  },
  {
    label: "经办人",
    field: "handler",
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "样品大类",
    field: "sampleType",
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "样品类别",
    field: "sampleSort",
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "样品处置",
    field: "sampleDispose",
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: "sample_dispose"
    },
    colProps: { span: 6 },
  },
];
